#!/bin/bash
name="logstash-input-jdbc-4.3.19"
cd $name/
rm -rf $name.gem
rm -rf $name.zip
gem build logstash-input-jdbc.gemspec
zip $name.zip $name.gem
cd ..
rm -rf logstash/plugins/$name.zip
cp $name/$name.zip logstash/plugins/$name.zip